package com.duanfh.HttpAction.impl;

import com.duanfh.HttpAction.InitRequest;
import com.duanfh.Request.impl.MyRequest;
import com.duanfh.Request.Request;

import java.io.InputStream;
import java.net.Socket;

public class InitRequestImpl implements InitRequest {
    @Override
    public Request getRequest(Socket socket) throws Exception {
        InputStream inputStream = socket.getInputStream();
        return new MyRequest(inputStream);
    }
}
